import java.util.Arrays;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.hobobe.tiercel.common.util.ZlibUtil;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String test="{\"programmers\": [{ \"firstName\": \"Brett\", \"lastName\":\"McLaughlin\", \"email\": \"aaaa\" },{ \"firstName\": \"Jason\", \"lastName\":\"Hunter\", \"email\": \"bbbb\" },{ \"firstName\": \"Elliotte\", \"lastName\":\"Harold\", \"email\": \"cccc\" }"+
"],\"authors\": [{ \"firstName\": \"Isaac\", \"lastName\": \"Asimov\", \"genre\": \"science fiction\" },{ \"firstName\": \"Tad\", \"lastName\": \"Williams\", \"genre\": \"fantasy\" },"+
"{ \"firstName\": \"Frank\", \"lastName\": \"Peretti\", \"genre\": \"christian fiction\" }],\"musicians\": [{ \"firstName\": \"Eric\", \"lastName\": \"Clapton\", \"instrument\": \"guitar\" },"+
"{ \"firstName\": \"Sergei\", \"lastName\": \"Rachmaninoff\", \"instrument\": \"piano\" }] }";
		
		byte[] a=test.getBytes();
		System.out.println(test.length());
		System.out.println(Arrays.toString(a).length());
		
		
		System.out.println(Arrays.toString(ZlibUtil.deflate(a)).length());
		
		
		
	}

}
